<template>
  <div class="q-pa-md">
    <div class="q-gutter-y-md column" style="max-width: 300px">
      <t-field :loading="loadingState" filled label="Label" stack-label>
        <template v-slot:control>
          <div class="self-center full-width no-outline" tabindex="0">{{
            text
          }}</div>
        </template>
      </t-field>
      <t-toggle v-model="loadingState" label="Loading state" />
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        text: ref('Field content'),
        loadingState: ref(false),
      };
    },
  };
</script>
